Interface that defines the root methods required for a class/struct to be an image storage type. Similar in purpose as InputRange is to ranges.
Must have a constructor that takes in the width and height as arguments.
this(size_t x, size_t y, IAllocator allocator = theAllocator())
Optionally may receive an allocator for allocating the pixel data from. The default is via the garbage collector.
The width and height should not be 0. Instead for dummy test code use 1. Fields cannot be used in place of methods.
Get a pixel given the position.
Sets a pixel given the position.
Resizes the data store.
Gets the height of the image
Gets the width of the image
See Implementation
Interface that defines the root methods required for a class/struct to be an image storage type.
Similar in purpose as InputRange is to ranges.
Must have a constructor that takes in the width and height as arguments.
Optionally may receive an allocator for allocating the pixel data from. The default is via the garbage collector.
The width and height should not be 0. Instead for dummy test code use 1.
Fields cannot be used in place of methods.